home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / rexx / 2005 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: ns2.borg.com!usenet
  2. From: warren@borg.com
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: My favorite small OS/2 Rexx program
  5. Date: 16 Apr 1996 08:16:58 GMT
  6. Organization: Team OS/2
  7. Distribution: inet
  8. Message-ID: <4kvl1q$sfn@ns2.borg.com>
  9. References: <199604111750.KAA16103@gw.quake.net> <changi0.9m.29RfJ7$07t@engcorp.com>
  10. Reply-To: warren@borg.com (Warren Hall)
  11. NNTP-Posting-Host: l58.borg.com
  12. X-Newsreader: IBM NewsReader/2 v1.9d - NLS
  13.  
  14. In <changi0.9m.29RfJ7$07t@engcorp.com>, peter@engcorp.com (Peter Hansen) writes:
  15. >In <199604111750.KAA16103@gw.quake.net>, Dave Gomberg <gomberg@WCF.COM> writes:
  16. >>On Thu, 11 Apr 1996 11:26:15 GMT you wrote:
  17. >>>stevpem@ibm.net wrote:
  18. >>>> This one doesn't exploit OS/2 in any way, but it is certainly short. :)
  19. >>>> /* Wonder Calculator */
  20. >>>> arg params;
  21. >>>> interpret say params;
  22. >>>> exit
  23. >>>> Just type "calc 1+1" to sample its abilities. I use it all the time.
  24. >>>> Steven P.
  25. >>>I wrote the same thing a few days ago.
  26. >>>Imagine programming this in C++..........
  27. >>>Anyone still think C++ is always faster? ;-)
  28. >>
  29. >>Fast to write?  This is fast to write:   /**/ Interpret 'SAY' ARG(1)
  30. >
  31. >And for those who haven't time even for that:
  32. >
  33. >C:\> rexxtry say 1+1
  34. >
  35. >gives the same results!  :)
  36.  
  37. And the winkies continue with "mine is smaller than yours is...":
  38.  
  39. /* Math.Cmd   key any REXX math function to see the result . */
  40.  arg expression; interpret say expression; exit
  41.  
  42. Warren
  43. http://www.borg.com/~warren
  44.  
  45.